import numpy as np
import matplotlib.pyplot as plt

real_x = []
real_y = []

list_x = []
list_y = []
list_vel = []
time = []    


f2 = open("realdata.txt",mode = 'r')
tmpcnt = 0
try:
    for line in f2.readlines():
        tmp_list = line.split(' ')
        tmpcnt += 1
        if(tmp_list[0] == 'distance:'):
            # print(float(tmp_list[1]),float(tmp_list[2]))
            tmp1 = float(tmp_list[2])
            real_x.append(float(tmp_list[2]))
            time.append(tmpcnt)
except:
    print(tmpcnt)
    
    
plt.plot(time, real_x, color="red", linewidth=1.0, linestyle="-")
plt.show()